class CreateBoardComments < ActiveRecord::Migration
  def self.up
    create_table :board_comments do |t|
      # t.column :name, :string
	t.column :board_post_id , :integer , :null => false
	t.column :user_id , :integer
	t.column :title , :string , :null => true
	t.column :content , :text , :null => false
	t.column :fl_enable , :integer , :null => false, :default => 0
    end
  end

  def self.down
    drop_table :board_comments
  end
end
